package com.u1s1.service;

import com.u1s1.dao.UsersMapper;
import com.u1s1.entity.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersService {

    @Autowired
    private UsersMapper usersMapper;

    public int deleteByPrimaryKey(Integer id){
        return  usersMapper.deleteByPrimaryKey(id);
    };

    public int insert(Users record){
        return usersMapper.insert(record);
    };

    public int insertSelective(Users record){
        return usersMapper.insertSelective(record);
    };

    public Users selectByPrimaryKey(Integer id){
        return usersMapper.selectByPrimaryKey(id);
    };

    public int updateByPrimaryKeySelective(Users record){
        return usersMapper.updateByPrimaryKeySelective(record);
    };

    public int updateByPrimaryKey(Users record){
        return usersMapper.updateByPrimaryKey(record);
    };

    public int getCount(){
        return usersMapper.getCount();
    }

    public List<Users> selectSelective(Users record){
        return usersMapper.selectSelective(record);
    }

    public List<Users> selectLike(Users record){
        return usersMapper.selectLike(record);
    }

}
